package com.abhinav.designPatterns.flyweight;

import java.awt.Color;
import java.awt.Point;

// ConcreteFlyWeight
public class Line implements LineFlyweight {
	private Color color;

	public Line(Color c) {
		color = c;
	}

	@Override
	public Color getColor() {
		return color;
	}

	@Override
	public void draw(Point location) {
		System.out.println("drawing line: " + location.getX() + ", " + location.getX()+" with color: "+color);
	}

}
